package cn.sitedev.improved.constructorinject;

import cn.sitedev.improved.JavaCourse;
import cn.sitedev.improved.PythonCourse;

/**
 * @author qchen
 * @description
 * @date 2020/9/16 0:51
 */
public class DependenceInversionTest {
    public static void main(String[] args) {
        test();
    }

    private static void test() {
        Tom tom = new Tom(new JavaCourse());
        tom.study();
        System.out.println("==========");

        tom = new Tom(new PythonCourse());
        tom.study();
    }
}
